﻿using System.Threading.Tasks;
using TinaX;
using TinaX.UIKit;
using TinaX.XComponent;
using UnityEngine;
using UnityEngine.UI;

namespace Nekonya.Example
{
    public class MainScreen : MonoUI2Lua
    {
        [Inject]
        public IUIKit _UIKit { get; set; }
        public Button btn_1 { get; set; }

        public override void Awake()
        {
            base.Awake();
        }
        public override void Start()
        {
            base.Start();
            return;
            btn_1.onClick.AddListener(async () =>
            {
                await _UIKit.OpenUIAsync("msgBox", new MsgBox(),
                    new OpenUIParam() { UseMask = true, CloseByMask = true },
                    "↑:w  ↓:s  ←:a  →:d  Fire:MouseLeftClick\n Do U Remember?", "Tips");
            });
        }
    }
}
